function updateStudent() {
    var selected = $("#studentTable").bootstrapTable('getSelections');
    var selected_length = selected.length;
    if (!selected_length) {
        $MB.n_warning('请勾选需要修改的信息！');
        return;
    }
    if (selected_length > 1) {
        $MB.n_warning('一次只能修改一条信息！');
        return;
    }
    var username = $('#user_name').text();
    var id = selected[0].id;
    $.post(ctx + "visitStudent/getVisitStudent", { "id": id }, function(r) {
        if (r.code == 0) {
            var $form = $('#student-add');
            $form.modal();
            var visitStudent = r.msg;
            $("#student-add-modal-title").html('修改来校师生信息');
            /*$form.find("input[name='name']").val(student.name).attr("readonly",true);*/
            $form.find("input[name='id']").val(visitStudent.id);
            $form.find("input[name='name']").val(visitStudent.name);
            //$form.find("input[name='ssex']").val(oneStudent.ssex);
            $("input:radio[value='" + visitStudent.status + "']").prop("checked", true);
            $form.find("input[name='graduateHigh']").val(visitStudent.graduateHigh);
            $form.find("input[name='telephone']").val(visitStudent.telephone);
            $form.find("input[name='note']").val(visitStudent.note);
            $form.find("input[name='username']").val(username);
            $("#student-add-button").attr("name", "update");
        } else {
            $MB.n_danger(r.msg);
        }
    });
}